<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>模板语法</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <script type="text/javascript">
        Vue.config.productionTip = false;
    </script>
</head>
<body>
<!-- 准备好一个容器 -->
<div id="root">
    <h1>插值语法</h1>
    <h2>你好，{{ name }}</h2>
    <hr/>
    <h1>指令语法</h1>
    <a v-bind:href="baiduurl">点我跳转到百度</a>
    <a :href="biying">点我跳转到必应</a>
    <h3>{{ Date.now()}}</h3>

</div>

</body>
<script type="text/javascript">

    new Vue({
        el: '#root',
        data: {
            name: 'zhangSan',
            baiduurl: 'https://www.baidu.com',
            biying: 'https://www.baidu.com',
        }
    })
</script>
</html>